package com.IC.base.service.impl;

import com.IC.base.mapper.SysRoleMapper;
import com.IC.base.service.SysRoleService;
import com.IC.domain.SysRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：xiawenze
 * @Package：com.IC.base.service.impl
 * @Project：smart2
 * @name：SysRoleServiceImpl
 * @Date：2024/7/29 11:31
 */
@Service
public class SysRoleServiceImpl implements SysRoleService{
    @Autowired
    private SysRoleMapper sysRoleMapper;
    @Override
    public List<SysRole> findSysRole(String name) {
        return sysRoleMapper.findSysRole(name);
    }

    @Override
    public void addSysRole(SysRole sysRole) {
        sysRoleMapper.addSysRole(sysRole);
    }

    @Override
    public void updateSysRole(SysRole sysRole) {
        sysRoleMapper.updateSysRole(sysRole);
    }

    @Override
    public void deleteSysRole(Integer id) {
        sysRoleMapper.deleteSysRole(id);
    }
}
